<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * iQuick 首頁/介紹/聯繫信息
 */
class Www extends CI_Controller {

	function __construct()
	{
		parent::__construct();

		parse_str($_SERVER['QUERY_STRING'],$_GET);
		$this->lang->load_gettext($this->session->userdata('lang'));
		$this->config->set_item("language", !$this->session->userdata('lang') ? $this->config->item("language") : $this->session->userdata('lang'));
	}

	//引導轉向
	public function index()
	{
		redirect(site_url("/www/home/"));
	}

	//首頁
	public function home()
	{
		//数据
		$data = array(
			"title" => $this->config->item('project_slogan')." | ".$this->config->item('project_name'),
		);

		//載入模板
		$this->load->view("header", $data);
		$this->load->view("home", $data);
		$this->load->view("footer", $data);
	}
}

/* End of file www.php */
/* Location: ./application/controllers/www.php */